export default {
  token: state => state.token,
  userInfo: state => state.userInfo,
  userAvatar: state => state.userInfo.avatar || 'https://img.yzcdn.cn/image/_avatar.png',
  userRoleName: state => state.userInfo.role.name || '未知',
  isManager: state => state.userInfo.role && state.userInfo.role.sign === 'manager',
  accessRouter: state => state.userInfo.accessRouter || []
};
